projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3d2df4
)
Don't use deprecated Pango api
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 2 Nov 2011 01:13:35 +0000
(21:13 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 2 Nov 2011 01:13:35 +0000
(21:13 -0400)
gdk/gdkpango.c
patch
|
blob
|
history
diff --git
a/gdk/gdkpango.c
b/gdk/gdkpango.c
index da35208827b52db28f479d8ffde73fad9223c9ef..c87b4afe2462ea40a6d63d67a0b3745797b5131d 100644
(file)
--- a/
gdk/gdkpango.c
+++ b/
gdk/gdkpango.c
@@
-356,12
+356,11
@@
gdk_pango_context_get_for_screen (GdkScreen *screen)
PangoContext *context;
const cairo_font_options_t *options;
double dpi;
-
+
g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
fontmap = pango_cairo_font_map_get_default ();
-
- context = pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap));
+ context = pango_font_map_create_context (fontmap);
options = gdk_screen_get_font_options (screen);
pango_cairo_context_set_font_options (context, options);